package com.example.bodyinfo.service;

import com.example.bodyinfo.dao.userReponsitory;
import com.example.bodyinfo.model.user;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class userService {
    @Autowired
    userReponsitory reponsitory;
    public user findById(){
        return reponsitory.findById(1).get();
    }
}
